package com.fagejiang.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.hibernate.annotations.ColumnDefault;
import org.hibernate.annotations.ColumnTransformer;

import javax.persistence.*;
import java.lang.reflect.Field;
import java.sql.Timestamp;
import java.util.Arrays;

/**
 * TODO
 *
 * @author 发哥讲Java
 * @version 1.0
 * @date 2021-03-12 8:53
 */
@NoArgsConstructor
@AllArgsConstructor
@Data
@Accessors(chain = true)
@Entity
@org.hibernate.annotations.Table(appliesTo  = "test_gp_table",comment = "测试表 ")
public class TestGpTable {
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;
    private String appType;
    @Column
    private String sourceType;
    private Long userId;
    private Long fileId;
    @Column(insertable = false, columnDefinition = "int default 0")
    private Integer isFile = 0;
    private Timestamp logTime;
    private static TestGpTable testGpTable = new TestGpTable();


}
